<include file="public@header" />
</head>
<body>
    <div class="layui-fluid">
        <!-- <ul class="nav nav-tabs">
            <li class="active"><a href="{:url('AdminCategory/index')}">分类管理</a></li>
            <li><a href="{:url('AdminCategory/add')}">添加分类</a></li>
        </ul> -->

        <div class="layui-card">
            <form method="post" class="js-ajax-form" action="{:url('AdminCategory/listOrder')}">
                <div class="layui-card-header well">
                    <div class="layui-col-xs6">
                        <h3>{:lang('PORTAL_ADMINCATEGORY_INDEX')}</h3>
                    </div>
                    <div class="layui-col-xs6 text-right">
                        <!-- 添加分类 -->
                        <a href="{:url('AdminCategory/add')}" class="layui-btn layui-btn-normal ">{:lang('ADD_CATEGORY')}</a>
                        <!-- 保存排序 -->
                        <button type="submit" class="layui-btn layui-btn-warm js-ajax-submit">{:lang('SAVE_SORT')}</button>
                    </div>
                </div>

                <div class="layui-card-body">
                    <table class="layui-table">
                        <thead>
                            <tr>
                                <th width="50">{:lang('SORT')}</th>
                                <th width="50">ID</th>
                                <th>{:lang('CATEGORY_NAME')}</th>
                                <th>{:lang('DISPLAY')}/{:lang('HIDE')}</th>
                                <th>{:lang('ADD_TIME')}</th>
                                <th width="195">{:lang('ACTIONS')}</th>
                            </tr>
                        </thead>
                        <tbody>
                            {$category_tree}
                        </tbody>
                    </table>
                </div>
            </form>
        </div>
    </div>
<include file="public@footer"/>
